<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<link rel="stylesheet" href="/layui/css/layui.css" />
<meta charset="UTF-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<title>查看健康资讯</title>
</head>
<body>
	<script src="/plugins/jquery/jquery-1.10.2.min.js"></script>
	<script src="/layui/layui.js"></script>
	<script src="/plugins/js/common.js"></script>
	<form class="layui-form" action="/healthInfo/updateHealthInfo"
		id="saveForm">
		<input type="hidden" name="id" th:value="${healthInfo.id}"> <br>
		<!--   <input type="hidden" id="attachmentId" name="attachmentId">	 -->
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">资讯标题：</label>
				<div class="layui-input-inline">
					<input name="title" placeholder="请输入产资讯标题" lay-verify="required"
						th:value="${healthInfo.title}" style="width: 260px;"
						autocomplete="off" class="layui-input">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">资讯内容：</label>
				<div class="layui-input-block">
					<textarea id="content" style="display: none;"
						th:text="${healthInfo.content}"></textarea>
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">是否发布：</label>
			<div class="layui-input-block">
				<input type="radio" name="status" lay-verify="required" value="1"
					th:checked="${healthInfo.status==1}" title="是"> <input
					type="radio" name="status" lay-verify="required" value="2"
					th:checked="${healthInfo.status==2}" title="否">
			</div>
		</div>
		<!--   <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;"> -->
		<!--   <legend>请上传产品图片</legend> -->
		<!-- </fieldset> -->
		<!-- <div class="layui-upload"> -->
		<!--   <button type="button" class="layui-btn" id="test1">上传图片</button> -->
		<!--   <div class="layui-upload-list"> -->
		<!--     <img class="layui-upload-img" id="demo1"> -->
		<!--     <p id="demoText"></p> -->
		<!--   </div> -->
		<!-- </div>    -->
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="back">返回</button>
			</div>
		</div>
	</form>
	<script type="text/javascript">
		layui.use([ 'form', 'layedit', 'upload' ], function() {
			upload = layui.upload;
			form = layui.form;
			var layedit = layui.layedit;
			layedit.build('content'); //建立编辑器
			form.on('submit(back)', function(data) {
				var index = parent.layer.getFrameIndex(window.name);
				parent.layer.close(index)
				return false;
			});

		});
	</script>
</body>
</html>